<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_项目排列方式</title>
    <style>
        .container{
            background-color: lightgreen;
            display: flex;
            justify-content: flex-start;
            justify-content: flex-end;
            justify-content: center;
            justify-content: space-between; /*主轴两端对求*/
            justify-content: space-around; /*主轴环绕对齐 a*/
            justify-content: space-evenly;  /*主轴公平对齐*/

            height: 500px;
            align-items: flex-start; /*向上*/
            align-items: flex-end; /*向下*/
            align-items: center; /*居中*/
        }
        .item{
            width: 100px;
            height: 100px;
            background-color: lightyellow;
            border: 3px solid deeppink;
            font-size: 45px;
        }

    </style>
</head>
<body>
    <div class="container">
        <div class="item">1</div>
        <div class="item">2</div>
        <div class="item">3</div>
        <div class="item">4</div>
        <div class="item">5</div>
        <div class="item">6</div>
        <div class="item">7</div>
    </div>
</body>
</html>